<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .aa{
            width: 200px;
            height: 200px;
            background-color: blueviolet;
            margin: 100px auto;

        }
        img{
            vertical-align:bottom; /*垂直对齐方式*/
            border:1px solid red ;
        }
     
    </style>
</head>
<body>
    <div class="aa">
    <div class="box1"><img src="./img/img1.jpg" alt=""></div>

    <div class="box2"><img src="./img/img3.jpeg" alt=""></div>
</div>
</body>
</html>